package com.qingxin.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * 用户角色视图
 * @author Administrator
 *
 */
@Entity
@Table(name = "sys_user_role_view")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class SysUserRoleView extends BaseEntity implements java.io.Serializable {
	private static final long serialVersionUID = 7648375255582529701L;
	
	private String relid;
	private String userid;
	private String roleid;
	private String role_code;
	private String role_name;
	private String remark;
	private Integer subgroup;
	private String groupid;
	private String groupname;
	
	
	public SysUserRoleView() {
	}
	
	
	@Id
	@Column(name = "relid", nullable = false, length = 32)
	public String getRelid() {
		return relid;
	}
	public void setRelid(String relid) {
		this.relid = relid;
	}
	
	@Column(name = "userid", length = 32)
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Column(name = "roleid", length = 32)
	public String getRoleid() {
		return roleid;
	}
	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}
	
	@Column(name = "role_code", length = 20)
	public String getRole_code() {
		return role_code;
	}
	public void setRole_code(String role_code) {
		this.role_code = role_code;
	}

	@Column(name = "role_name", length = 50)
	public String getRole_name() {
		return role_name;
	}
	public void setRole_name(String role_name) {
		this.role_name = role_name;
	}
	
	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name = "subgroup")
	public Integer getSubgroup() {
		return subgroup;
	}
	public void setSubgroup(Integer subgroup) {
		this.subgroup = subgroup;
	}
	
	@Column(name = "groupid", length = 50)
	public String getGroupid() {
		return this.groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}
	
	@Column(name = "groupname", length = 100)
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	
}
